package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.drugstore.*;
import com.yanqu.road.entity.drugstore.config.DrugStoreBadgeInfo;
import com.yanqu.road.entity.drugstore.config.DrugStoreDrugUpgradeInfo;
import com.yanqu.road.entity.drugstore.config.DrugStorePrescriptionInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DrugStoreBussiness {


    public static UserDrugStoreData getUserDrugStoreData(long userId) {
        return DaoHelper.getUserDrugStoreDataDaoImpl().getUserDrugStoreData(userId);
    }

    public static Map<Integer, UserDrugChuFangData> getUserDrugChuFangDataMap(long userId) {
        return DaoHelper.getUserDrugChuFangDataDaoImpl().getUserDrugChuFangData(userId);
    }

    public static List<UserDrugLandData> getUserDrugLandDataList(long userId) {
        return DaoHelper.getUserDrugLandDataDaoImpl().getUserDrugLandData(userId);
    }

    public static List<UserDrugChuFangOrderData> getUserDrugChuFangOrderDataList(long userId) {
        return DaoHelper.getUserDrugChuFangOrderDataDaoImpl().getUserDrugChuFangOrderData(userId);
    }

    public static List<DrugStoreBadgeInfo> getDrugStoreBadgeInfoList() {
        return DaoHelper.getDrugStoreConfigDaoImpl().getDrugStoreBadgeInfoList();
    }

    public static List<DrugStoreDrugUpgradeInfo> getDrugStoreDrugUpgradeInfoList() {
        return DaoHelper.getDrugStoreConfigDaoImpl().getDrugStoreDrugUpgradeInfoList();
    }

    public static Map<Integer, DrugStorePrescriptionInfo> getDrugStorePrescriptionInfoMap() {
        return DaoHelper.getDrugStoreConfigDaoImpl().getDrugStorePrescriptionInfoMap();
    }


    // 疑难杂症 DrugHardCaseUserData
    public static DrugHardCaseUserData getDrugHardCaseUserData(long userId) {
        return DaoHelper.getDrugHardCaseUserDataDaoImpl().getDrugHardCaseUserData(userId);
    }

    public static boolean addDrugHardCaseUserData(DrugHardCaseUserData item) {
        return DaoHelper.getDrugHardCaseUserDataDaoImpl().add(item);
    }

    public static boolean updateDrugHardCaseUserData(DrugHardCaseUserData item) {
        return DaoHelper.getDrugHardCaseUserDataDaoImpl().update(item);
    }

    // 疑难杂症 DrugHardCaseRecordData
    public static Map<Integer, List<DrugHardCaseRecordData>> getDrugHardCaseRecordDataMap(long userId) {
        return DaoHelper.getDrugHardCaseRecordDataDaoImpl().getDrugHardCaseRecordDataMap(userId);
    }

    public static boolean addDrugHardCaseRecordData(DrugHardCaseRecordData item) {
        return DaoHelper.getDrugHardCaseRecordDataDaoImpl().add(item);
    }

    public static boolean updateDrugHardCaseRecordData(DrugHardCaseRecordData item) {
        return DaoHelper.getDrugHardCaseRecordDataDaoImpl().update(item);
    }

    // 疑难杂症 DrugHardDispenseRankData
    public static Map<Integer, DrugHardDispenseRankData> getDrugHardDispenseRankDataMap(){
        return DaoHelper.getDrugHardDispenseRankDataDaoImpl().getDrugHardDispenseRankDataMap();
    }

    public static boolean updateDrugHardDispenseRankData(DrugHardDispenseRankData item ){
        return DaoHelper.getDrugHardDispenseRankDataDaoImpl().update(item);
    }

    public static boolean addDrugHardDispenseRankData(DrugHardDispenseRankData item){
        return DaoHelper.getDrugHardDispenseRankDataDaoImpl().add(item);
    }

    public static boolean addUserDrugStoreData(UserDrugStoreData userDrugStoreData) {
        return DaoHelper.getUserDrugStoreDataDaoImpl().add(userDrugStoreData);
    }

    public static boolean updateUserDrugStoreData(UserDrugStoreData userDrugStoreData) {
        return DaoHelper.getUserDrugStoreDataDaoImpl().update(userDrugStoreData);
    }

    public static boolean addUserDrugChuFangData(UserDrugChuFangData chuFangData) {
        return DaoHelper.getUserDrugChuFangDataDaoImpl().add(chuFangData);
    }

    public static boolean updateUserDrugChuFangData(UserDrugChuFangData chuFangData) {
        return DaoHelper.getUserDrugChuFangDataDaoImpl().update(chuFangData);
    }

    public static boolean addUserDrugLandData(UserDrugLandData landData) {
        return DaoHelper.getUserDrugLandDataDaoImpl().add(landData);
    }

    public static boolean updateUserDrugLandData(UserDrugLandData landData) {
        return DaoHelper.getUserDrugLandDataDaoImpl().update(landData);
    }

    public static boolean addUserDrugChuFangOrderData(UserDrugChuFangOrderData orderData) {
        return DaoHelper.getUserDrugChuFangOrderDataDaoImpl().add(orderData);
    }

    public static boolean updateUserDrugChuFangOrderData(UserDrugChuFangOrderData orderData) {
        return DaoHelper.getUserDrugChuFangOrderDataDaoImpl().update(orderData);
    }
}
